/*******************************************************************************
 * Copyright 2011 WaTho
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package de.wathoserver.android.dragoid.api;

import java.util.HashMap;
import java.util.Map;

/**
 * Eine Ware
 * 
 * @author watho
 * 
 */
public class StockItem {

	public static final String COL_NAME = "stock_name";
	public static final String COL_NUMBER = "stock_number";
	public static final String COL_PRODUCTION = "stock_production";

	String name;
	int number;
	String production;
	STOCK_TYPE type;

	public StockItem() {
	}

	public StockItem(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getProduction() {
		return production;
	}

	public void setProduction(String production) {
		this.production = production;
	}

	public Map<String, String> toMap() {
		Map<String, String> result = new HashMap<String, String>();
		result.put(COL_NAME, name);
		result.put(COL_NUMBER, String.valueOf(number));
		result.put(COL_PRODUCTION, production);
		return result;
	}

	public enum STOCK_TYPE {
		ALRAUNE, BRETTER, BROT, EISEN, EISENERZ, ZAUBERWASSER, FAESSER, FLEISCH, GEMUESE, GESCHIRR, GETREIDE, HANF, HOLZ, HONIG, KERZEN, KOHLE, LEDER, LEHM, MEHL, MET, MOEBEL, NAEGEL, OBST, PAPIER, SATTEL, SEILE, FOLIANTEN, STEINE, STEINZIEGEL, STOFF, VIEH, WERKZEUGE, ZIEGEL
	}

}
